<script src="../../../../../../public/static/global/My97DatePicker/WdatePicker.js"></script>
{extend name="$BASE_POPUP_FORM" /}
{block name="body"}
<link rel="stylesheet" type="text/css" href="__STATIC__/easyui/themes/custom/easyui.css" />
<style>
    .edui-editor, .edui-editor-iframeholder {
        width: 790px !important;
    }
    .img_upload_wrp .img_upload_box.img_upload_preview_box{
        width:120px !important;
        height:120px !important;
    }
    .img_box{
        position: relative;
        width: 150px;
        height: 150px;
    }
    .opt_set{
        position: absolute;
        top: 120px;
        width: 100%;
        height: 30px;
        right: 0px;
        background-color: #c2c2c2d1;
    }
    #js_append_img{
        display: inline-flex;
    }
</style>
<div class="box-content">
    <div class="control-group">
                    <label class="control-label">标题</label>
                    <div class="controls">
                        <input type="text" style="width:300px" id="agreement_title" name="agreement_title" placeholder="输入标题" disabled class="form-control required" />
                    </div>
    </div>
    <div class="control-group">
                <label class="control-label">协议内容</label>
                <div class="controls">
                    <textarea id="agreement" name="agreement"></textarea>
                    {:hook('editor', array('height'=>'','id'=>"$id",'name'=>'agreement'))}
                </div>
    </div>
 </div>
{/block}
<script type="text/javascript" src="__STATIC__/layer/laydate/laydate.js"></script>
{block name="script"}
<script type="text/javascript">



    function onLoadDataSuccess(data)
    {

        if (typeof (onLoadSuccess) !== "undefined")
            onLoadSuccess();
        if (data.images) {
            var images = data.images;
            var arr = images.split(',');
            for (var i = 0; i < arr.length; i++) {
                var html = '<img  style="width:150px;height:150px;padding:5px;" src="'+arr[i]+'" alt="">';
                $("#js_append_img").append(html);
            }
        }
    }

</script>
{/block}

